<?php
class SpmasModel extends Model
{
	// 自动验证设置
	protected $_validate = array
	( 
		array('acc_id','require','请选择一个交易对象!',1),
		array('acc_id','number','交易对象，数据不正确!',2),
	);
	
	protected $_auto = array(
        array('disc_rate', 'check_disc', self::MODEL_BOTH, 'function'),
        //array('create_time', NOW_TIME, self::MODEL_INSERT),
        //array('update_time', NOW_TIME, self::MODEL_BOTH),
        //array('status', 'Y', self::MODEL_BOTH),
    );


	
}
?>